package com.sunfeng.chap14;

import java.nio.ByteBuffer;

public class Test4 {
    public static void main(String[] args) {
        byte[] bytes = new byte[]{1, 2, 3, 4, 5, 6, 7};
        ByteBuffer byteBuffer = ByteBuffer.allocate(7);

        byteBuffer.get(bytes);



    }
}
